package com.ruoyi.returnCustomer.service;

import com.ruoyi.returnCustomer.domain.TCustomerReturnRecord;
import com.ruoyi.returnCustomer.domain.vo.TCustomerReturnRecordVo;
import com.ruoyi.returnCustomer.domain.bo.TCustomerReturnRecordBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 客户退回记录Service接口
 *
 * @author ruoyi
 * @date 2023-08-20
 */
public interface ITCustomerReturnRecordService {

    /**
     * 查询客户退回记录
     */
    TCustomerReturnRecordVo queryById(Long id);

    /**
     * 查询客户退回记录列表
     */
    TableDataInfo<TCustomerReturnRecordVo> queryPageList(TCustomerReturnRecordBo bo, PageQuery pageQuery);

    /**
     * 查询客户退回记录列表
     */
    List<TCustomerReturnRecordVo> queryList(TCustomerReturnRecordBo bo);

    /**
     * 新增客户退回记录
     */
    Boolean insertByBo(TCustomerReturnRecordBo bo);

    /**
     * 修改客户退回记录
     */
    Boolean updateByBo(TCustomerReturnRecordBo bo);

    /**
     * 校验并批量删除客户退回记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
